package com.icim.define;
/**
 * 
* @ClassName: CommDefine
* @Description: 通用常量定义区
* @author Lynn.Sea
* @date 2013-12-27 上午9:33:21
*
 */
public class CommDefine {
	public static final long _NORMAL = 0;
	public static final long INITIAL_RETURN_CODE = 1;
	public static final long TRY_CATCH_ERROR = 2;
	public static final long LOADER_CONFIG_NOT_FOUND_ERROR = 3;
	public static final long XML_NODE_NOT_INTEGRITY = 4;// xml结点不完整
	public static final long OPEARTION_TYPE_ERROR = 5;// xml中opeartion 值错误：只能是insert或update
	public static final long GET_TABLE_COLUMN_ERROR=6;
	
	public static final long GET_DB_OPEN_CONNECTION_ERROR =20;
	public static final long GET_DB_GET_CONNECTION_ERROR =21;
	public static final long GET_DB_CLOSE_CONNECTION_ERROR =22;
	public static final long EXCUTE_SQL_ERROR = 23;
	public static final long GET_DB_RECORD_CNT_ERROR = 24;
	public static final long DB_COMMIT_ERROR = 25;
	public static final long DB_ROLLBACK_ERROR = 26;
	public static final long DB_UNKNOWN_SQL_ERROR = 29;

	public static final int TRANSATION_MODE_PPT = 1;
	public static final int TRANSATION_MODE_HIS = 2;
	public static final int TRANSATION_MODE_BOTH_PPT_HIS = 3;
	/**
	 * table define error in config file . send to error MQ
	 */
	public static final int TRANSATION_MODE_NONE = 4;

	/**
	 * xml 通用结点定义
	 */
	public static final String XML_NODE_TABLE_DBOPE_TIME_D = "dbope_time_d";
	public static final String XML_NODE_TABLE = "table";
	public static final String XML_NODE_OPE_TBL_NAME = "ope_tbl_name";
	public static final String XML_NODE_OPERATION = "operation";
	public static final String XML_NODE_UNQ_SEQ_ID = "unq_seq_id";
	public static final String XML_NODE_PV_UNQ_SEQ_ID = "pv_unq_seq_id";
	public static final String XML_NODE_START_TIME_D = "sta_time_d";
	public static final String XML_NODE_EVT_TIMESTAMP = "evt_timestamp";

	
	public static final String DATA_TYPE_ERROR = "ERROR";

	public static final int TIME_STAMP_LEN = 19;
	public static final String STRING_NULL = "NULL";
	/**
	 * 操作类型(OPERATION)
	 */
	public static final String OPEARTION_INSERT = "INSERT";
	public static final String OPEARTION_UPDATE = "UPDATE";
	public static final String OPERATION_DELETE = "DELETE";
	
	public final static String RETURN_CODE_OK = "0000000";
	public final static String RETURN_MESG_OK = "SUCCESS";
}
